﻿@namespace  ERP.Abp.AntDesignUI

<Button Type="@Color" OnClick="@Clicked" Disabled="@Disabled">
    @if (Icon != null)
    {
        <Icon Type="@Icon" Class="me-1"></Icon>
    }
    @Text
</Button>

@code {

    [Parameter]
    public string Color { get; set; } = ButtonType.Default;

    [Parameter]
    public string Icon { get; set; }

    [Parameter]
    public string Text { get; set; }

    [Parameter]
    public Func<Task> Clicked { get; set; }

    [Parameter]
    public bool Disabled { get; set; }
}
